﻿@model IEnumerable<asMeishi.web.Models.dict>
@using publicLibrary

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>列表</h2>

<p>
    @Html.ActionLink("Create New", "Edit")
</p>
<table>
    <tr>
        <th></th>
        <th>
            name
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new {  id=item.Id  }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
        <td>
            @item.name
        </td>
    </tr>
}

</table>

